package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author linju
 * @since 2020-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DeviceMonitorValue对象", description="")
public class DeviceMonitorValue extends Model<DeviceMonitorValue> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "轮询时间")
    private String polling;

    @ApiModelProperty(value = "井盖状态")
    private String manholeStatus;

    @ApiModelProperty(value = "报警状态")
    private String warnStatus;

    @ApiModelProperty(value = "声音")
    private Boolean sound;

    @ApiModelProperty(value = "阈值")
    private Integer warnValue;

    @ApiModelProperty(value = "告警等级")
    private String grade;

    @ApiModelProperty(value = "系统类型")
    private String moduleType;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
